package com.only.common.enums;

import com.only.common.doucment.ResultMessage;

public enum ValidationErrorCode implements ResultMessage {
    PARAM_ERROR("116", "参数校验失败"),
    ENCRYPTION_FAILED("117", "加密失败"),
    DECRYPTION_FAILED("118", "解密失败"),
    DECRYPTION_FAILED_SM2("119", "解密失败"),
    ENCRYPTION_FAILED_SM2("120", "加密失败"),
    FILE_NOT_FOUND("121", "该路径下未找到指定文件"),
    FILE_INPUT_STREAM_READ_ERROR("122", "文件流读取出错"),
    FILE_URL_IS_NULL("123", "文件路径不能为空"),
    BASE64_TO_FILE_ERROR("124", "base64转换文件出错"),
    CLASS_NOT_FOUND_EXCEPTION("125", "找不到指定的类,检查业务类型是否准确");

    private String code;
    private String message;

    private ValidationErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}

